# -*- mode: snippet -*-
# name: ggplot x y template simple
# key: ggplot2.xy.template
# --
ggplot(data = $1, mapping = aes(x = $2, y = $3)) +
    geom_$4() +
    theme_bw() +
    theme(axis.text.x = element_text(angle = 90, vjust = 0.5),
          legend.key = element_blank(),
          plot.title = element_text(hjust = 0.5),
          strip.background = element_blank())
$0